// {
  //   id: 1,
  //   name: '加冰',
  //   oppositeIds: []
  // }

const MockList = [
  {
    id: 1,
    name: '1',
    oppositeIds: [4, 5],
    category: 'first',
    lock: false,
  },
  {
    id: 2,
    name: '2',
    oppositeIds: [3],
    category: 'first',
    lock: false,
  },
  {
    id: 8,
    name: '8',
    oppositeIds: [],
    category: 'first',
    lock: false,
  },
  {
    id: 3,
    name: '3',
    oppositeIds: [2, 5],
    category: 'second',
    lock: false,
  },
  {
    id: 4,
    name: '4',
    oppositeIds: [1, 6],
    category: 'second',
    lock: false,
  },
  {
    id: 7,
    name: '7',
    oppositeIds: [],
    category: 'second',
    lock: false,
  },
  {
    id: 5,
    name: '5',
    oppositeIds: [1, 3],
    category: 'third',
    lock: false,
  },
  {
    id: 6,
    name: '6',
    oppositeIds: [4],
    category: 'third',
    lock: false,
  },
  {
    id: 9,
    name: '9',
    oppositeIds: [],
    category: 'third',
    lock: false,
  },
]

const categoryRule = [
  {
    category: 'first',
    multiple: true,
  },
  {
    category: 'second',
    multiple: false,
  },
  {
    category: 'third',
    multiple: false,
  },
]

const MockData = MockList.map((item) => {
  let multiple = false
  categoryRule.forEach((i) => {
    i.category === item.category && (multiple = i.multiple);
  })

  return {
    ...item,
    multiple,
  }
})

export {
  MockData,
}